<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" href="/favicon.ico" />
  <meta name="viewport"
    content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
  <meta name="format-detection" content="telephone=no, email=no, date=no, address=no" />
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Expires" content="0">
  <title>管理端</title>
  <!-- Link Swiper's CSS -->
  <link rel="stylesheet" href="/swiper/css/swiper.min.css">
</head>

<body>
  <div id="app"></div>
  <script>
    (function () {
      function setChannel(result) {
        for (const i in result) {
          if (i == 'hz' || i == 'yl' || i == 'qd') {
            sessionStorage.setItem('channel_key', i);
            sessionStorage.setItem('channel_value', result[i]);
          }
        }
      };

      function getUrlParams(url = window.location.href) {
        const queryString = url.split('?')[1];
        if (!queryString) return {};

        const params = new URLSearchParams(queryString);
        const result = {};

        for (const [key, value] of params.entries()) {
          result[key] = value;
        }

        setChannel(result);

        if (!result['t']) {
          sessionStorage.setItem('queryString', JSON.stringify(result));
        }
      }

      getUrlParams();
    })();
  </script>
  <!-- Swiper JS -->
  <script src="/swiper/js/swiper.min.js"></script>
  <script type="module" src="/src/main.ts"></script>
</body>

</html>